package com.xiaoluo.lottery.common.weixin.hb.beans;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

/**
 * Project : lottery
 * Package : main.java.com.xiaoluo.lottery.common.weixin.pay.enums
 * Created by Willian.
 * Date  : 2016/4/6 14:38.
 */
@Root(name = "xml")
public class RedPackRes {


    @Element(name = "return_code")                       private String  returnCode = "FAIL";     //返回状态码	   是	SUCCESS	String(16)    SUCCESS/FAIL    此字段是通信标识，非交易标识，交易是否成功需要查看result_code来判断
    @Element(name = "return_msg",required = false)       private String  returnMsg;      //返回信息	   否	签名失败	String(128)    返回信息，如非空，为错误原因            签名失败    参数格式校验错误
    @Element(name = "sign",required = false)             private String  sign;           //签名	 是	C380BEC2BFD727A4B6845133519F3AD6	String(32)	生成签名方式详见签名生成算法
    @Element(name = "result_code",required = false)      private String  resultCode;     //业务结果	   是	SUCCESS	String(16)	SUCCESS/FAIL
    @Element(name = "err_code",required = false)         private String  errCode;        //错误代码	   否	SYSTEMERROR	String(32)	错误码信息
    @Element(name = "err_code_des",required = false)     private String  errCodeDes;     //错误代码描述	    否	系统错误	String(128)	结果信息描述
    @Element(name = "mch_billno",required = false)       private String  mchBillno;      //商户订单号	   是	10000098201411111234567890	String(28)    商户订单号（每个订单号必须唯一）    组成：mch_id+yyyymmdd+10位一天内不能重复的数字
    @Element(name = "mch_id",required = false)           private String  mchId;          //商户号	  是	10000098	String(32)	微信支付分配的商户号
    @Element(name = "wxappid",required = false)          private String  wxappid;        //公众账号appid	   是	wx8888888888888888	String(32)	商户appid，接口传入的所有appid应该为公众号的appid（在mp.weixin.qq.com申请的），不能为APP的appid（在open.weixin.qq.com申请的）。
    @Element(name = "re_openid",required = false)        private String  reOpenid;       //用户openid	 是	oxTWIuGaIt6gTKsQRLau2M0yL16E	String(32)    接受收红包的用户            用户在wxappid下的openid
    @Element(name = "total_amount",required = false)     private String  totalAmount;    //付款金额	   是	1000	int	付款金额，单位分
    @Element(name = "send_time",required = false)        private String  sendTime;       //发放成功时间	    是	20150520102602	int	红包发送时间
    @Element(name = "send_listid",required = false)      private String  sendListid;     //微信单号	   是	100000000020150520314766074200	String(32)	红包订单的微信单号


    public String getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrCodeDes() {
        return errCodeDes;
    }

    public void setErrCodeDes(String errCodeDes) {
        this.errCodeDes = errCodeDes;
    }

    public String getMchBillno() {
        return mchBillno;
    }

    public void setMchBillno(String mchBillno) {
        this.mchBillno = mchBillno;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getWxappid() {
        return wxappid;
    }

    public void setWxappid(String wxappid) {
        this.wxappid = wxappid;
    }

    public String getReOpenid() {
        return reOpenid;
    }

    public void setReOpenid(String reOpenid) {
        this.reOpenid = reOpenid;
    }

    public String getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(String totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getSendListid() {
        return sendListid;
    }

    public void setSendListid(String sendListid) {
        this.sendListid = sendListid;
    }
}
